package com.py.pythink.controller;

import com.py.pythink.service.intf.AssessService;
import com.py.pythink.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wsh
 * @date 2021/7/7 22:09
 */
@RestController
@RequestMapping("/api/assess/")
@Api(value = "",tags = "房屋估价")
public class AssessController {
    // 房屋估价，进行估价表进行查询
    @Autowired
    private AssessService service;
    @PostMapping("query.do")
    public R query(String address,String type,Integer num){
        return service.queryMoney(address,type,num);
    }

    @PostMapping("query.do")
    public R query1(String address,String type,Integer num){
        return service.queryMoney(address,type,num);
    }

    @PostMapping("query.do")
    public R query2(String address,String type,Integer num){
        return service.queryMoney(address,type,num);
    }

    @PostMapping("query.do")
    public R query3(String address,String type,Integer num){
        return service.queryMoney(address,type,num);
    }

    @PostMapping("query.do")
    public R query4(String address,String type,Integer num){
        return service.query();
    }

    @PostMapping("query.do")
    public R query5(String address,String type,String aa){

        return service.query();
    }
}
